package com.gitee.starblues.grape.repository.databases.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.starblues.grape.repository.databases.entity.RebateAccountPo;
import org.apache.ibatis.annotations.Param;

public interface RebateAccountMapper extends BaseMapper<RebateAccountPo> {
    int deleteByPrimaryKey(Integer id);

    int insert(RebateAccountPo record);

    int insertSelective(RebateAccountPo record);

    RebateAccountPo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RebateAccountPo record);

    int updateByPrimaryKey(RebateAccountPo record);
    
    RebateAccountPo selectRebateAccountByUserId(@Param("userId")String userId);
    
    // 新增根据用户名查询的方法
    RebateAccountPo selectRebateAccountByUserName(@Param("userName")String userName);
}
